package fr.emse.tatiana.replayable.analysis.graph;

import org.eclipse.gef.commands.Command;

import fr.emse.tatiana.replayable.Anchor;
import fr.emse.tatiana.replayable.analysis.GraphAnalysis;

public class EventChangeTextCommand extends Command {
	
	private GraphAnalysis analysis;
	private Anchor anchor;
	private String text;
	
	@Override
	public void execute() {
		analysis.setText(anchor,text);
	}
	

	public void setText(String text) {
		this.text = text;
	}

	
	public void setModel(GraphAnalysis analysis, Object o) {
		this.analysis =  analysis;
		this.anchor = (Anchor) o;
	}
}
